class CreateMachines < ActiveRecord::Migration
  def self.up
    create_table :machines do |t|
	t.belongs_to :room
	t.string :serial_number, :machine_name, :ip_adr, :state
	t.integer :state_number, :mode
    t.timestamps
    end
  end

  def self.down
    drop_table :machines
  end
end
